package org.geektimes.configuration.microprofile.source;

import org.eclipse.microprofile.config.spi.ConfigSource;

import java.util.Collections;
import java.util.HashMap;
import java.util.Map;
import java.util.Set;

/**
 * @Author: jipeng
 * @Description: 基于 Map 数据结构 {@link ConfigSource} 的实现
 * @Date: Created in 2021/3/19 8:14
 */
public abstract class BesedConfigSource implements ConfigSource {

    /**
     * 配置元名称
     */
    private String configSourceName;
    /**
     * 优先级
     */
    private Integer ordinal;




    public BesedConfigSource(String configSourceName, Integer ordinal) {
        this.configSourceName = configSourceName;
        this.ordinal = ordinal;
    }


    @Override
    public final int getOrdinal() {
        return this.ordinal;
    }


    @Override
    public final String getName() {
        return this.configSourceName;
    }


}
